﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using Sbook.Data;

namespace Sbook.Business
{
    public class CategoryService
    {
        private static CategoryInfoController db = new CategoryInfoController();
        #region[Category_GetById]
        public static List<Data.CategoryInfo> Category_GetById(string Id)
        {
            return db.Category_GetById(Id);
        }
        #endregion
        #region[Category_GetByTop]
        public static List<Data.CategoryInfo> Category_GetByTop(string Top, string Where, string Order)
        {
            return db.Category_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Category_GetByAll]
        public static List<Data.CategoryInfo> Category_GetByAll()
        {
            return db.Category_GetByAll();
        }
        #endregion
        #region[Category_Paging]
        public static List<Data.CategoryInfo> Category_Paging(string CurentPage, string PageSize)
        {
            return db.Category_Paging(CurentPage, PageSize);
        }
        #endregion
        #region[Category_Insert]
        public static bool Category_Insert(CategoryInfo data)
        {
            return db.Category_Insert(data);
        }
        #endregion
        #region[Category_Update]
        public static bool Category_Update(CategoryInfo data)
        {
            return db.Category_Update(data);
        }
        #endregion
        #region[Category_Delete]
        public static bool Category_Delete(string Id)
        {
            return db.Category_Delete(Id);
        }
        #endregion
    }
}